// app.js
import request from './utils/request'
App({
  globalData: {
    isMusicPlay: false,
    musicId: ''
  },
  onLaunch() {
    // this.getOpenId()
  },
  getOpenId() {
    wx.login({
      success: (res) => {
        const code = res.code
        request('getOpenId',{code}).then(res=>{
          console.log(res);
        })
      }
    })
  }
  
})
